package com.wwk.dao;

import com.github.pagehelper.Page;
import com.wwk.pojo.Member;

import java.util.List;

/**
 * @Classname MemberDao
 * @Description TODO
 * @Date 2020/11/5 10:04
 * @Created by com.wwk
 * @Author com.wwk
 */
public interface MemberDao {
    //查询所有会员
    public List<Member> findAll();
    //条件分页查询
    public Page<Member> findMemByCondition(String queryString);
    //根据id查询会员
    public Member findMemById(Integer memId);
    //修改信息
    public void edit(Member member);
    //根据电话查询
    public Member findByTelephone(String telephone);
    public void add(Member member);
    public void deleteById(Integer id);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
}
